#ifndef __RGB_PWM_H
#define __RGB_PWM_H

#include "../hardware/PWM/fly_pwm.h"             // PWM

// 颜色宏定义
#define RGB_COLOR_RED      1
#define RGB_COLOR_GREEN    2
#define RGB_COLOR_BLUE     3
#define RGB_COLOR_YELLOW   4
#define RGB_COLOR_CYAN     5
#define RGB_COLOR_MAGENTA  6
#define RGB_COLOR_WHITE    7
#define RGB_COLOR_OFF      0


uint8_t hal_tim4_pwm_flag;
void RGB_PWM_Init(void);
void RGB_PWM_SetColor(uint8_t red, uint8_t blue, uint8_t green);
void RGB_SET(uint8_t color);

#endif
